<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "sys_auth".
 *
 * @property int $authid
 * @property string|null $module
 * @property int $menuid
 * @property string $action_desc
 * @property string $action_code
 * @property int $range
 * @property string $auth_status
 * @property int $is_delete
 * @property string $create_at
 * @property string $update_at
 */
class SysAuth extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'sys_auth';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['menuid', 'action_desc', 'action_code'], 'required'],
            [['menuid', 'range', 'is_delete'], 'integer'],
            [['create_at', 'update_at'], 'safe'],
            [['module', 'action_desc', 'action_code', 'auth_status'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'authid' => 'Authid',
            'module' => 'Module',
            'menuid' => 'Menuid',
            'action_desc' => 'Action Desc',
            'action_code' => 'Action Code',
            'range' => 'Range',
            'auth_status' => 'Auth Status',
            'is_delete' => 'Is Delete',
            'create_at' => 'Create At',
            'update_at' => 'Update At',
        ];
    }
}
